﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ECRMS.WinForm.WinService;

namespace ECRMS.WinForm.BaseClass.Common
{
    public class User
    {
        public bool Login(string username, string password)
        {
            using (var srv = new ECRServiceClient())
            {
             CtServiceResultOfCtUserOUJwPUXg result =  srv.CtLogin(username,password);
             if (result.Status ==1)
              {
                  this.UserInfo = result.Data;
                  return true;
              }
              else
              {
                  return false;
              }
            }
        }

        public CtUser UserInfo  { get; set;}
    }

}
